package cn.qzuie.smart.module.dorm.controller.admin.energyusage.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - 能源使用 Response VO")
@Data
@ExcelIgnoreUnannotated
public class EnergyUsageRespVO {

    @Schema(description = "用电记录ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11591")
    @ExcelProperty("用电记录ID")
    private Long id;

    @Schema(description = "宿舍ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "7928")
    @ExcelProperty("宿舍ID")
    private Long dormitoryId;

    @Schema(description = "能源编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "8326")
    @ExcelProperty("能源编号")
    private Long energyId;

    @Schema(description = "上次抄表日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("上次抄表日期")
    private LocalDateTime preReadingDate;

    @Schema(description = "当前读数", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("当前读数")
    private Double currentReading;

    @Schema(description = "上次读数", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("上次读数")
    private BigDecimal previousReading;

    @Schema(description = "抄表人", example = "19279")
    @ExcelProperty("抄表人")
    private Long userId;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "用量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("用量")
    private String usage;

}